﻿@using PagedList
@model PeaceBlogData.Tables.Authors

@{
    ViewBag.Title = "Yazar";
    Layout = "~/Views/_PeaceLayout.cshtml";
    var posts = ContentHelpers.GetPostFromAuthor(Model.AuthorID);
}

<article class="prl-article w-box">
    <div class="w-box-inner">

        <h1>@Model.NameSurname</h1>
    </div>
    @Html.Partial("BlogPartial/AuthorInfo", Model)
    @Html.Partial("BlogPartial/SocialBox", Model.SocialInfo)
</article>

@if (posts != null && posts.Count > 0)
{
    @Html.Partial("BlogPartial/Posts/ShortPosts", posts.ToPagedList(1, 10))
}

